home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
f2c
/
may_5_92.lha
/
f2c.VMay_5_1992
/
libF77
/
i_indx.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-07
|
277b
|
25 lines
#include "f2c.h"
integer i_indx(a, b, la, lb)
char *a, *b;
ftnlen la, lb;
{
ftnlen i, n;
char *s, *t, *bend;
n = la - lb + 1;
bend = b + lb;
for(i = 0 ; i < n ; ++i)
{
s = a + i;
t = b;
while(t < bend)
if(*s++ != *t++)
goto no;
return(i+1);
no: ;
}
return(0);
}